package model.enums;

public enum Movement {
	UP, DOWN, LEFT, RIGHT;

	public static Movement randomSide() {
		int random = (int)(Math.random() * 100);

		if (random <= 25) {
			return Movement.UP;
		} else if (random > 25 && random <= 50) {
			return Movement.DOWN;
		} else if (random > 50 && random <= 75) {
			return Movement.RIGHT;
		} else { // random > 75
			return Movement.LEFT;
		}
	}
}
